package com.leyou.mall.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Time;
import java.util.Date;

/**
 * @ClassName: ActivityTime
 * @author: LYL
 * @date: 2022/6/23 17:08
 * @Version 1.0
 */
@Data
@TableName("activity_time")
@ToString
public class ActivityTime {
    @ApiModelProperty("id")
    @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    @ApiModelProperty("编号")
    private String actNumber;

    @ApiModelProperty("商品数量")
    private int actCount;

    @ApiModelProperty("开始时间")
    private Time startTime;

    @ApiModelProperty("结束时间")
    private Time stopTime;

    @ApiModelProperty("状态")
    private String actStatus;

    @ApiModelProperty("是否启用")
    private Boolean actType;

    @ApiModelProperty("秒杀活动编号")
    private String seckillId;

    @ApiModelProperty("删除标志")
    private Boolean deleteFlag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date updateDate;

    @TableField(exist = false)
    private String activityDate;
}
